Add a new item
Parent Type: LearningStoreJob
Namespace: Microsoft.LearningComponents.Storage
Assembly: Microsoft.LearningComponents.Storage.dll
| C# |
|
public LearningStoreItemIdentifier AddItem ( ) |
itemTypeName
The name of the item type to add
propertyValues
Property values for the item.
A temporary LearningStoreItemIdentifier that identifies the item being added.
| Exception type | Condition |
| ArgumentNullException | itemTypeName or propertyValuesis a null reference. |
| System.InvalidOperationException | The item type in itemTypeName doesn't exist in the store, a property name passed in propertyValues doesn't exist on the item type, a property value passed in propertyValues is not a valid value for the corresponding property, or a required property wasn't passed in propertyValues. |
Calls AddItem(itemTypeName, propertyValues, false). See that overload for more details.